package com.asj.house.service;

import com.asj.house.entity.HouseRoomIntermediary;
import com.asj.house.returns.RespEntity;
import com.asj.house.vo.CheckBoxVO;
import com.asj.house.vo.TreeVO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import org.hibernate.validator.constraints.EAN;

/**
 * <p>
 * 房屋中介关系表 服务类
 * </p>
 *
 * @author asj
 * @since 2021-03-16
 */
public interface HouseRoomIntermediaryService extends IService<HouseRoomIntermediary> {

    /**
     * 房源分配中介复选框格式
     * @param roomId
     * @return
     */
    RespEntity<List<CheckBoxVO>> listCheckBoxVO(Integer roomId);

    /**
     * 分配房源
     * @param ids
     * @param roomId
     * @return
     */
    RespEntity updateIntermediary(String ids, Integer roomId);

    /**
     * 房源分配树形展示
     * @return
     */
    RespEntity<List<TreeVO>> listTreeVO();
}
